package com.jiehoo.utils;

import java.util.*;

public class TreeSetUtil {
	private TreeSetUtil() {
	}

	public static TreeSet<Object> ArrayToTreeSet(Object[] array) {
		if (array != null) {
			TreeSet<Object> treeSet = new TreeSet<Object>();
			for (int i = 0; i < array.length; i++) {
				treeSet.add(array[i]);
			}
			return treeSet;
		} else {
			return null;
		}
	}
}